import { api } from "src/boot/axios";
export const getLoginPic = (params) => {
  return api({
    url: "/wxLogin/getLoginPic",
    method: "get",
    params,
  });
};

export const loginOrCreate = (params) => {
  return api({
    url: "/wxLogin/loginOrCreate",
    method: "get",
    params,
  });
};

export const clearWx = () => {
  return api({
    url: "/wxLogin/clearWx",
    method: "post",
  });
};

export const register = (data) => {
  return api({
    url: "/wxLogin/register",
    method: "post",
    data,
  });
};
